﻿@{
    var width = ViewData["width"] ?? 200;
    var height = ViewData["height"] ?? 200;
}
<div class="fileupload fileupload-new" data-provides="fileupload">
    <div class="fileupload-new thumbnail" style="max-width: @(width)px; max-height: @(height)px;">
        <img src="@ViewData["oriUrl"]?@System.DateTime.Now.ToFileTime()" alt="" />
    </div>
    <div class="fileupload-preview fileupload-exists thumbnail" style="max-width: @(width)px; max-height: @(width)px; line-height: 20px;">
    </div>
    <div>
        <span class="btn btn-default btn-file">
            <span class="fileupload-new">
                <i class="fa fa-paper-clip"></i>选择图片
            </span>
            <span class="fileupload-exists">
                <i class="fa fa-undo"></i>修改图片
            </span>
            <input type="file" name="@ViewData["name"]" class="default" />
        </span>
        @* <a href="#" class="btn btn-danger fileupload-exists" data-dismiss="fileupload"><i class="fa fa-trash-o"></i>移除</a>*@
    </div>
</div>
